#ifndef MAINPAGE_H
#define MAINPAGE_H

#include <QWidget>

namespace Ui {
class MainPage;
}

class MainPage : public QWidget
{
    Q_OBJECT

public:
    explicit MainPage(QWidget *parent = nullptr);
    ~MainPage();

private slots:
    void getCarTimerTimeoutSlot();

    void on_btnSend_clicked();

    void LampControlSlot(bool sw);
    void setCarAlarmSlot(bool sw);
    void setCarAlarmLightSlot(bool sw);
    void setCarStatusSlot(bool sw);
    void newLampSlot(int roadId, int color);



private:
    Ui::MainPage *ui;
    QTimer *CarTimer;
    QList<int > roundList;
    int roundIndex = 0;
    int roundPos = 0;

};

#endif // MAINPAGE_H
